

#include <sharedvalue.h>
#include <gfx/iprogramparameter.h>

int ceSharedValueTypeProvider::GetFreeTypeId()
{
	static int typeId = 0;

	typeId++;
	return typeId;
}


void ceSharedValueInt::Bind(iProgramParameter *param)
{
  assert (param);
  param->Bind (_value);
}


void ceSharedValueUnsignedInt::Bind(iProgramParameter *param)
{
  assert (param);
  param->Bind ((int)_value);
}


void ceSharedValueFloat::Bind(iProgramParameter *param)
{
  assert (param);
  param->Bind (_value);
}

void ceSharedValueVector2::Bind(iProgramParameter *param)
{
  assert (param);
  param->Bind (_value);
}

void ceSharedValueVector3::Bind(iProgramParameter *param)
{
  assert (param);
  param->Bind (_value);
}

void ceSharedValueVector4::Bind(iProgramParameter *param)
{
  assert (param);
  param->Bind (_value);
}
